<script setup lang="ts">
import {ref} from 'vue'
const dialog = ref(false)
const form = ref({})
</script>

<template>
  <div>
    <el-button  plain link @click="dialog=true">新建铺面</el-button>
  </div>
  <el-dialog v-model="dialog" title="铺面创建" width="30%" :before-close="CloseDia">
    <el-form label-width="120px" :model="form">
      <el-form-item label="店铺名">
        <el-input v-model="form.name" placeholder="起一个霸气的店铺名称" />
      </el-form-item>
      <el-form-item label="店铺描述">
        <el-input v-model="form.desc" type="textarea" placeholder="好的店铺描述将会吸引更多的人" />
      </el-form-item>
    </el-form>
    <template #footer>
      <span class="dialog-footer">
        <el-button type="primary" @click="AddGroup">
          确认
        </el-button>
      </span>
    </template>
  </el-dialog>
</template>

<style scoped>

</style>